#!/usr/bin/env python
# -*- coding:utf-8 -*-
import requests
from bs4 import BeautifulSoup
import struct
import binascii
import ctypes
import base64
import encodings
import re
from PIL import Image
from io import BytesIO
import datetime
import time
import json
from _util import yc_util

# 2将"2011-09-28 10:00:00"转化为时间戳
a = "2011-09-28 10:00:00"
b = "2011-09-28 10:00:30"
print time.mktime(time.strptime(a, '%Y-%m-%d %H:%M:%S'))
print time.mktime(time.strptime(b, '%Y-%m-%d %H:%M:%S'))
print time.time()
print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time()))
print time.time() + 300
print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time() + 300))
print float(".025")
print yc_util.get_hour()
print yc_util.get_minute()